package sk.stuba.fiit.repka.dp.owl;

import java.util.ArrayList;
import java.util.List;


/**
 * 
 * @author Igor Repka
 *
 */
public class MyOWLClass extends OWLComponent{
	private List<MyOWLClass> disjoinClasses;
	private List<OWLRestriction> restrictions;
	
	public List<MyOWLClass> getDisjoinClasses() {
		if(this.disjoinClasses == null) {
			this.disjoinClasses = new ArrayList<MyOWLClass>();
		}
		
		return this.disjoinClasses;
	}
	
	public boolean hasDisjoinClass() {
		if(this.getDisjoinClasses().size() > 0) {
			return true;
		}
		return false;
	}
	
	public List<OWLRestriction> getRestrictions() {
		if(this.restrictions == null) {
			this.restrictions = new ArrayList<OWLRestriction>();
		}
		
		return this.restrictions;
	}
	
	public boolean hasRestriction() {
		if(this.getRestrictions().size() > 0) {
			return true;
		} 
		return false;
	}
	
	public MyOWLClass(String name, MyOWLClass subClass) {
		super(name, subClass);
	}
	
	public MyOWLClass(String name) {
		super(name);
	}
}
